string_to_number

This function converts the given string into a number.

double string_to_number(string the_string)

Parameters:
the_string
The string to convert.

Return value:
The number stored in the string on success, 0 on failure.

Remarks:
When converting a string to a number the function will ignore any spaces that may appear before the actual number, as well as any additional text that may come after the last numeric character that can be interpreted. The function will also include any plus or minus sign appearing in the beginning of the string, as well as any decimals that are present.

Example:
void main()
{
string my_string="-35.6";
double my_number=string_to_number(my_string);
}